<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 16-12-5
 * Time: 下午8:50
 * To change this template use File | Settings | File Templates.
 */

namespace Home\Controller;


class MessageController extends HomeController {
    public function index(){
        $cid=I("get.cid",52,"int");
        $document=D("Document");
        $list=$document->lists($cid);
        $this->assign("list",$list);
        $id=I("get.id",$list[0]['id'],"int");
        $data=$document->detail($id);
        $this->assign("data",$data);
        $this->assign("meta_title","联系我们");
        $this->display($data['template']);
    }

}